package main

import "fmt"

func mm() {
	strings := []string{"google", "runoob"}
	for i, s := range strings {
		fmt.Println(i, s)
	}
	map1 := make(map[int]float32)
	map1[0] = 1.0
	map1[1] = 1.0
	map1[2] = 2.0
	map1[3] = 3.0
	num := make([]int, 0, len(map1))
	for k := range map1 {
		num = append(num, k)
	}

	for key := range num {
		fmt.Printf(" %f\n", map1[key])

	}

}
func getSequence() func() int {
	i := 0
	return func() int {
		i += 1
		return i
	}
}

type myint int

func (num *myint) zizeng(a int) int {
	var A myint = myint(a)
	*num = A + 2
	var nums int = int(*num)
	return nums
}
